package com.slt.android.androidexplorationart;

import java.io.Serializable;

/**
 * Created by dp on 2018/3/15.
 * 1.serialVersionUID 自己生成或者自动生成效果一样
 * 2.静态的成员变量属于类 不属于对象，不会参与序列化过程
 * 3.transient关键字标记的成员变量也不会参与序列化过程。
 *
 */

public class User implements Serializable {

    public static final long serialVersionUID = 165416164163L;
    public int userId;
    public String userName;
    public boolean isMale;

    public User(int userId, String userName, boolean isMale) {
        this.userId = userId;
        this.userName = userName;
        this.isMale = isMale;
    }


    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public boolean isMale() {
        return isMale;
    }

    public void setMale(boolean male) {
        isMale = male;
    }
}
